package cn.itcast.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

//控制器类
@Controller
@RequestMapping(path = "/user")
public class HelloController {

    @RequestMapping(path = "/hello")
    public String say_Hello(){
        System.out.println("Hello World!");
        return "success";
    }

    @RequestMapping(path = "/testMapping")
    public String TestRequestMapping(){
        System.out.println("测试requestMapping注解...");
        return "success";
    }
}
